package cn.rknn.iot.entity.iot;

import java.time.LocalDateTime;

public class Device {

    private Long id;

    private String nickname;

    private Long userId;

    private String img;


    private Long groupId;
    /**
     * 唯一标识编号
     */
    private String key;

    private String secret;

    private Long productId;

    private String productKey;

    /**
     * 0: 离线
     * 1: 在线
     */
    private int status;

    private int nodeType;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private LocalDateTime lastDataTime;
    /**
     * 经度
     */
    private String longitude;

    /**
     * 纬度
     */
    private String latitude;

    /**
     * 固件版本号
     */
    private String otaVersion;

    private String ipAddr;

    /**
     * 上一级设备id
     */
    private Long parentId;

    /**
     * 乐观锁版本号
     */
    private Long  version;
}
